package priv.pront.code.mati.province.comp;

import java.util.Scanner;

/**
 * @Description:
 * @Author: pront
 * @Time:2023-11-18 14:01
 */
public class Main1 {

    static int a, b, ans = 0;
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        a = scanner.nextInt();
        b = scanner.nextInt();
        for (int i = a; i <= b; i++) {
            int res = 0;
            if(i % 8 != 0){
                for (int j = i; j >= 0; j--) {
                    res += j;
                }
            }
            ans += res;
        }
        System.out.println(ans);
    }
}
